package com.ruoyi.pms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pms.mapper.DetailText2Mapper;
import com.ruoyi.pms.domain.DetailText2;
import com.ruoyi.pms.service.IDetailText2Service;

/**
 * 富文本测试2Service业务层处理
 * 
 * @author yf
 * @date 2022-02-15
 */
@Service
public class DetailText2ServiceImpl implements IDetailText2Service 
{
    @Autowired
    private DetailText2Mapper detailText2Mapper;

    /**
     * 查询富文本测试2
     * 
     * @param id 富文本测试2主键
     * @return 富文本测试2
     */
    @Override
    public DetailText2 selectDetailText2ById(Long id)
    {
        return detailText2Mapper.selectDetailText2ById(id);
    }

    /**
     * 查询富文本测试2列表
     * 
     * @param detailText2 富文本测试2
     * @return 富文本测试2
     */
    @Override
    public List<DetailText2> selectDetailText2List(DetailText2 detailText2)
    {
        return detailText2Mapper.selectDetailText2List(detailText2);
    }

    /**
     * 新增富文本测试2
     * 
     * @param detailText2 富文本测试2
     * @return 结果
     */
    @Override
    public int insertDetailText2(DetailText2 detailText2)
    {
        return detailText2Mapper.insertDetailText2(detailText2);
    }

    /**
     * 修改富文本测试2
     * 
     * @param detailText2 富文本测试2
     * @return 结果
     */
    @Override
    public int updateDetailText2(DetailText2 detailText2)
    {
        return detailText2Mapper.updateDetailText2(detailText2);
    }

    /**
     * 批量删除富文本测试2
     * 
     * @param ids 需要删除的富文本测试2主键
     * @return 结果
     */
    @Override
    public int deleteDetailText2ByIds(Long[] ids)
    {
        return detailText2Mapper.deleteDetailText2ByIds(ids);
    }

    /**
     * 删除富文本测试2信息
     * 
     * @param id 富文本测试2主键
     * @return 结果
     */
    @Override
    public int deleteDetailText2ById(Long id)
    {
        return detailText2Mapper.deleteDetailText2ById(id);
    }
}
